package com.shbaiche.bifenba.model;

import com.shbaiche.bifenba.model.base.Passport;
import com.shbaiche.bifenba.model.data.CompeteVo;
import com.shbaiche.bifenba.model.match.MatchesVo;

import cn.droidlover.xdroid.event.IBus;

/**
 * Created by wanglei on 2012/2/8.
 */

public class Event {

    /**
     * 测试EventBus用到的实体
     */
    public static class TestEvent implements IBus.IEvent {

        public String name;

        public TestEvent(String name) {
            this.name = name;
        }

        @Override
        public int getTag() {
            return 10;
        }
    }

    /**
     * 登录成功
     */
    public static class LoginEvent implements IBus.IEvent {

        public Passport passport;

        public LoginEvent( Passport passport) {
            this.passport = passport;
        }

        @Override
        public int getTag() {
            return 12;
        }
    }

    /**
     * 数据页面 切换年份
     */
    public static class EventYearChange implements IBus.IEvent {
        public CompeteVo vo;
        public int index;
        public String year;

        public EventYearChange(CompeteVo vo,int index,String year) {
            this.vo = vo;
            this.index = index;
            this.year = year;
        }

        @Override
        public int getTag() {
            return 11;
        }
    }

    /**
     * 更新MatchesVo
     */
    public static class MatchesVoEvent implements IBus.IEvent {

        public MatchesVo matchesVo;

        public MatchesVoEvent(MatchesVo matchesVo) {
            this.matchesVo = matchesVo;
        }

        @Override
        public int getTag() {
            return 13;
        }
    }


}
